package com.infore.qualityControl.entity;

import java.io.Serializable;
import javax.persistence.*;

import org.hibernate.annotations.GenericGenerator;
import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * 实际水样比对实体
 * @author Cold
 *
 */
@Entity
@Table(name="MONTH_QUALITY_REAL_WATER")
@NamedQuery(name="MonthQualityRealWater.findAll", query="SELECT m FROM MonthQualityRealWater m")
public class MonthQualityRealWater implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="ID")
	@GeneratedValue(generator = "uuidGenerator")
	@GenericGenerator(name = "uuidGenerator", strategy = "uuid") // UUID生成策略
	private String id;
	
	/** 审核人 **/
	@Column(name="AUDIT_PERSON")
	private String auditPerson;
	
	/** 审核时间 **/
	@Temporal(TemporalType.TIMESTAMP)
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@Column(name="AUDIT_TIME")
	private Date auditTime;
	
	/** 审核标识 **/
	@Column(name="AUDIT_FLAG")
	private String auditFlag;
	
	/** 指标编码 **/
	@Column(name="INDEX_CODE")
	private String indexCode;
	
	/** 指标名称 **/
	@Column(name="INDEX_NAME")
	private String indexName;
	
	/** 指标单位 **/
	@Column(name="INDEX_UNIT")
	private String indexUnit;

	/** 站点ID **/
	@Column(name="STATION_CODE")
	private String stationCode;
	
	/** 提交人 **/
	@Column(name="SUBMIT_PERSON")
	private String submitPerson;
	
	/** 提交时间 **/
	@Temporal(TemporalType.TIMESTAMP)
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@Column(name="SUBMIT_TIME")
	private Date submitTime;
	
	/** 测试时间 **/
	@Temporal(TemporalType.TIMESTAMP)
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@Column(name="TEST_TIME")
	private Date testTime;

	public MonthQualityRealWater() {
	}

	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getAuditPerson() {
		return this.auditPerson;
	}

	public void setAuditPerson(String auditPerson) {
		this.auditPerson = auditPerson;
	}

	public Date getAuditTime() {
		return this.auditTime;
	}

	public void setAuditTime(Date auditTime) {
		this.auditTime = auditTime;
	}
	
	public String getAuditFlag() {
		return auditFlag;
	}

	public void setAuditFlag(String auditFlag) {
		this.auditFlag = auditFlag;
	}

	public String getIndexCode() {
		return this.indexCode;
	}

	public void setIndexCode(String indexCode) {
		this.indexCode = indexCode;
	}

	public String getIndexName() {
		return this.indexName;
	}

	public void setIndexName(String indexName) {
		this.indexName = indexName;
	}

	public String getIndexUnit() {
		return this.indexUnit;
	}

	public void setIndexUnit(String indexUnit) {
		this.indexUnit = indexUnit;
	}

	public String getStationCode() {
		return this.stationCode;
	}

	public void setStationCode(String stationCode) {
		this.stationCode = stationCode;
	}

	public String getSubmitPerson() {
		return this.submitPerson;
	}

	public void setSubmitPerson(String submitPerson) {
		this.submitPerson = submitPerson;
	}

	public Date getSubmitTime() {
		return this.submitTime;
	}

	public void setSubmitTime(Date submitTime) {
		this.submitTime = submitTime;
	}

	public Date getTestTime() {
		return this.testTime;
	}

	public void setTestTime(Date testTime) {
		this.testTime = testTime;
	}

}